package routers

import (
	"github.com/gin-gonic/gin"
	v1 "teacher-helper/api/v1"
	"teacher-helper/middleware"
)

func InitGrantRouter(Router *gin.RouterGroup)  {
	GrantRouter := Router.Group("grants").Use(middleware.JWTAuth())
	{
		GrantRouter.GET("/getGrantList", v1.GetGrantList)
		GrantRouter.POST("/addGrant", v1.AddOneGrant)
		GrantRouter.PUT("/updateGrant", v1.UpdateGrant)
		GrantRouter.DELETE("/deleteGrant", v1.DeleteGrant)
	}
}

